package com.example.zhiran.pojo.option;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户操作的返回参数
 */
@Data
public class OptionResult {

    public OptionResult() {
    }

    //1.状态=>成功or失败
    private Boolean status;
    //2.操作
    private Integer optionCode;
    //3.结果
    private Object result;
    //4.提示信息
    private Integer messageCode;

    /*
    * 状态码*/
    public static final Boolean SUCCESS = true;
    public static final Boolean FAILURE = false;

    //server error  服务器错误
    public static final int SERVER_ERROR = 99;

}
